﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace OneCard.Face8280Module.Entities.DbModels
{
    /// <summary>
    /// 
    ///</summary>
    [SugarTable("Equipment")]
    public class Equipment
    {
        /// <summary>
        ///  设备ID
        ///</summary>
        [SugarColumn(ColumnName = "EquptID", IsPrimaryKey = true, IsIdentity = true)]
        public int EquptID { get; set; }
        /// <summary>
        ///  设备名称
        ///</summary>
        [SugarColumn(ColumnName = "EquptName")]
        public string EquptName { get; set; }
        /// <summary>
        ///  安装位置
        ///</summary>
        [SugarColumn(ColumnName = "LctnID")]
        public int LctnID { get; set; }
        /// <summary>
        ///  设备类型；以通讯库的定义为主
        ///</summary>
        [SugarColumn(ColumnName = "EquptType")]
        public int EquptType { get; set; }
        /// <summary>
        ///  设备状态；1--在线；0--不在线；
        ///</summary>
        [SugarColumn(ColumnName = "EquptStatus")]
        public byte EquptStatus { get; set; }
        /// <summary>
        ///  设备SN
        ///</summary>
        [SugarColumn(ColumnName = "EquptSN")]
        public string EquptSN { get; set; }
        /// <summary>
        ///  设备地址，指纹人脸机时，0表示进门，1表示出门
        ///</summary>
        [SugarColumn(ColumnName = "EquptAddr")]
        public int EquptAddr { get; set; }
        /// <summary>
        ///  未排序卡容量
        ///</summary>
        [SugarColumn(ColumnName = "CardCount")]
        public int CardCount { get; set; }
        /// <summary>
        ///  排序卡容量
        ///</summary>
        [SugarColumn(ColumnName = "SequenceCard")]
        public int SequenceCard { get; set; }
        /// <summary>
        ///  未排序卡容量_已占用容量
        ///</summary>
        [SugarColumn(ColumnName = "CardCount_Online")]
        public int CardcountOnline { get; set; }
        /// <summary>
        ///  排序卡容量_已占用容量
        ///</summary>
        [SugarColumn(ColumnName = "SequenceCard_Online")]
        public int SequencecardOnline { get; set; }
        /// <summary>
        ///  开锁输出时长，0表示0.5秒。最大65535秒
        ///</summary>
        [SugarColumn(ColumnName = "OpenDoorTime")]
        public int OpenDoorTime { get; set; }
        /// <summary>
        ///  设备有效期
        ///</summary>
        [SugarColumn(ColumnName = "Deadline")]
        public int Deadline { get; set; }
        /// <summary>
        ///  版本号
        ///</summary>
        [SugarColumn(ColumnName = "EquptVer")]
        public float EquptVer { get; set; }
        /// <summary>
        ///  上次设备校准时间,针对8280改为最近在线时间
        ///</summary>
        [SugarColumn(ColumnName = "EquptTime")]
        public decimal EquptTime { get; set; }
        /// <summary>
        ///  读卡器字节数；取值：2、3、4。
        ///</summary>
        [SugarColumn(ColumnName = "ReaderByte")]
        public byte ReaderByte { get; set; }
        /// <summary>
        ///  继电器输出方式；
        ///</summary>
        [SugarColumn(ColumnName = "LockType")]
        public byte LockType { get; set; }
        /// <summary>
        ///  门常开状态。
        ///</summary>
        [SugarColumn(ColumnName = "DoorOpenType")]
        public byte DoorOpenType { get; set; }
        /// <summary>
        ///  门锁定状态
        ///</summary>
        [SugarColumn(ColumnName = "LockDoorType")]
        public byte LockDoorType { get; set; }
        /// <summary>
        ///  非法读卡报警开关，0或1.
        ///</summary>
        [SugarColumn(ColumnName = "ReadErrCardAlarm")]
        public byte ReadErrCardAlarm { get; set; }
        /// <summary>
        ///  防遣返开关
        ///</summary>
        [SugarColumn(ColumnName = "CheckCardInOutState")]
        public byte CheckCardInOutState { get; set; }
        /// <summary>
        ///  端口号
        ///</summary>
        [SugarColumn(ColumnName = "PortNum")]
        public byte PortNum { get; set; }
        /// <summary>
        ///  设备备注
        ///</summary>
        [SugarColumn(ColumnName = "EquptDesc")]
        public string EquptDesc { get; set; }
        /// <summary>
        ///  通讯方式；0--Rs485；1--TCP/IP；2--UDP;3--Internet;10-httpserver
        ///</summary>
        [SugarColumn(ColumnName = "ConnType")]
        public byte ConnType { get; set; }
        /// <summary>
        ///  串口号
        ///</summary>
        [SugarColumn(ColumnName = "COMPort")]
        public int COMPort { get; set; }
        /// <summary>
        ///  波特率
        ///</summary>
        [SugarColumn(ColumnName = "CommBaudrate")]
        public int CommBaudrate { get; set; }
        /// <summary>
        ///  IP地址
        ///</summary>
        [SugarColumn(ColumnName = "IPAddr")]
        public string IPAddr { get; set; }
        /// <summary>
        ///  IP端口号
        ///</summary>
        [SugarColumn(ColumnName = "NetPort")]
        public int NetPort { get; set; }
        /// <summary>
        ///  是否启用
        ///</summary>
        [SugarColumn(ColumnName = "EquptEnabled")]
        public byte EquptEnabled { get; set; }
        /// <summary>
        ///  TCP参数
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "TCPPar")]
        public byte[] TCPPar { get; set; }
        /// <summary>
        ///  功能参数
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "SystemPar")]
        public byte[] SystemPar { get; set; }
        /// <summary>
        ///  读卡认证参数
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "ReaderPar")]
        public byte[] ReaderPar { get; set; }
        /// <summary>
        ///  门工作方式
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "DoorWork")]
        public byte[] DoorWork { get; set; }
        /// <summary>
        ///  定时锁定门参数
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "LockOpenTime")]
        public byte[] LockOpenTime { get; set; }
        /// <summary>
        ///  重复读卡间隔参数
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "ReaderInterval")]
        public byte[] ReaderInterval { get; set; }
        /// <summary>
        ///  胁迫报警参数。
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "AlarmPassword")]
        public byte[] AlarmPassword { get; set; }
        /// <summary>
        ///  开门超时提示参数
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "LongOpenAlarm")]
        public byte[] LongOpenAlarm { get; set; }
        /// <summary>
        ///  出门开关参数
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "ButtonPar")]
        public byte[] ButtonPar { get; set; }
        /// <summary>
        ///  门磁报警参数
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "DoorStateAlarm")]
        public byte[] DoorStateAlarm { get; set; }
        /// <summary>
        ///  全卡开门参数
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "ProhibitCheck")]
        public byte[] ProhibitCheck { get; set; }
        /// <summary>
        ///  多卡开门参数
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "MuchCardPar")]
        public byte[] MuchCardPar { get; set; }
        /// <summary>
        ///  通讯密码
        /// 默认值: (0xFFFFFFFF)
        ///</summary>
        [SugarColumn(ColumnName = "ConnPassword")]
        public byte[] ConnPassword { get; set; }
        /// <summary>
        ///  是否为测试版
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "EquptTest")]
        public byte EquptTest { get; set; }
        /// <summary>
        ///  首卡检测模式
        /// 默认值: (0x0000)
        ///</summary>
        [SugarColumn(ColumnName = "EquptFirstCheckMode")]
        public byte[] EquptFirstCheckMode { get; set; }
        /// <summary>
        ///  多卡检测模式
        /// 默认值: (0x0000)
        ///</summary>
        [SugarColumn(ColumnName = "EquptMuchCardCheckMode")]
        public byte[] EquptMuchCardCheckMode { get; set; }
        /// <summary>
        ///  记录存储方式；0--循环覆盖存储；1--不在保存新记录。
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "RecordSaveMode")]
        public byte RecordSaveMode { get; set; }
        /// <summary>
        ///  遥控器参数
        /// 默认值: (0x0000000000)
        ///</summary>
        [SugarColumn(ColumnName = "KeypadPar")]
        public byte[] KeypadPar { get; set; }
        /// <summary>
        ///  报警时间，单位秒；0--关闭报警；1-254具体时间；255--表示持续报警，直至关闭。
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "AlarmTime")]
        public byte AlarmTime { get; set; }
        /// <summary>
        ///  IC卡参数
        /// 默认值: (0x000000)
        ///</summary>
        [SugarColumn(ColumnName = "ICCardPar")]
        public byte[] ICCardPar { get; set; }
        /// <summary>
        ///  有效期到期提醒时间
        ///</summary>
        [SugarColumn(ColumnName = "CardDeadlineTipDay")]
        public byte? CardDeadlineTipDay { get; set; }
        /// <summary>
        ///  多卡开门验证方式
        ///</summary>
        [SugarColumn(ColumnName = "MuchCardCheckEx")]
        public byte[] MuchCardCheckEx { get; set; }
        /// <summary>
        ///  区域反潜回启用标记
        ///</summary>
        [SugarColumn(ColumnName = "AreaCheckInOut")]
        public byte? AreaCheckInOut { get; set; }
        /// <summary>
        ///  区域互锁启用标记
        ///</summary>
        [SugarColumn(ColumnName = "AreaLockInteraction")]
        public byte? AreaLockInteraction { get; set; }
        /// <summary>
        ///  门内外开关验证功能开关
        ///</summary>
        [SugarColumn(ColumnName = "BothWayCheckPar")]
        public byte? BothWayCheckPar { get; set; }
        /// <summary>
        ///  安装时间
        ///</summary>
        [SugarColumn(ColumnName = "SetupDateTime")]
        public decimal? SetupDateTime { get; set; }
        /// <summary>
        ///  防拆报警开关  0或1.
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "DisassemblyAlarmPar")]
        public byte? DisassemblyAlarmPar { get; set; }
        /// <summary>
        ///  读卡器防拆报警开关  0或1.  仅89H用
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "ReaderDisassemblyAlarmPar")]
        public byte? ReaderDisassemblyAlarmPar { get; set; }
        /// <summary>
        ///  人脸识别阈值  取值范围 1-6
        /// 默认值: ((5))
        ///</summary>
        [SugarColumn(ColumnName = "FaceRecognitionThreshold")]
        public byte? FaceRecognitionThreshold { get; set; }
        /// <summary>
        ///  在屏幕上显示设备名称0\1
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "ScreenShowName")]
        public byte? ScreenShowName { get; set; }
        /// <summary>
        ///  出厂日期
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "ProductionDate")]
        public decimal? ProductionDate { get; set; }
        /// <summary>
        ///  补光灯模式：0：常闭；  1：常开； 2：自动；
        /// 默认值: ((1))
        ///</summary>
        [SugarColumn(ColumnName = "FaceLEDMode")]
        public byte? FaceLEDMode { get; set; }
        /// <summary>
        ///  口罩识别开关 0--禁止；1--启用
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "FaceMouthmufflePar")]
        public byte? FaceMouthmufflePar { get; set; }
        /// <summary>
        ///  体温检测开关及格式 0--禁止；1--摄氏度（默认值）；2--华氏度
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "BodyTemperaturePar")]
        public byte? BodyTemperaturePar { get; set; }
        /// <summary>
        ///  体温报警阈值  35-50  稳定用整形存储，显示时除10，例如37.5，存储为375
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "BodyTemperatureAlarmPar")]
        public int? BodyTemperatureAlarmPar { get; set; }
        /// <summary>
        ///  使用[人脸机、指纹机做为读头] 仅针对控制板
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "ReaderByFaceDevice")]
        public byte? ReaderByFaceDevice { get; set; }
        /// <summary>
        ///  人脸机屏幕显示体温数值开关
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "DisplayBodyTmp")]
        public int? DisplayBodyTmp { get; set; }
        /// <summary>
        ///  设备认证后显示的短消息 30个字符
        /// 默认值: ('')
        ///</summary>
        [SugarColumn(ColumnName = "DriveSMS")]
        public string DriveSMS { get; set; }
        /// <summary>
        ///  非法认证次数，超过后报警
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "ReadErrCardAlarmTimes")]
        public int? ReadErrCardAlarmTimes { get; set; }
        /// <summary>
        ///  是否启用通讯加密
        /// 默认值: ((0))
        ///</summary>
        [SugarColumn(ColumnName = "IsConnectEncrypt")]
        public int? IsConnectEncrypt { get; set; }
        /// <summary>
        ///  加密秘钥
        /// 默认值: ('')
        ///</summary>
        [SugarColumn(ColumnName = "EncryptKey")]
        public string EncryptKey { get; set; }


        /// <summary>
        ///  语言
        ///</summary>
        [SugarColumn(ColumnName = "DriveLanguage")]
        public int? DriveLanguage { get; set; }

        /// <summary>
        ///  音量
        ///</summary>
        [SugarColumn(ColumnName = "DriveVolume")]
        public int? DriveVolume { get; set; }

        /// <summary>
        ///  活体检测
        ///</summary>
        [SugarColumn(ColumnName = "FaceCheckType")]
        public int? FaceCheckType { get; set; }

        /// <summary>
        ///  识别距离
        ///</summary>
        [SugarColumn(ColumnName = "FaceCheckDist")]
        public int? FaceCheckDist { get; set; }

        /// <summary>
        ///  现场照片
        ///</summary>
        [SugarColumn(ColumnName = "SavePhoto")]
        public int? SavePhoto { get; set; }

        /// <summary>
        ///  活体检测阈值 1-99
        ///</summary>
        [SugarColumn(ColumnName = "FaceBioassaySimilarity")]
        public int? FaceBioassaySimilarity { get; set; }
        

        /// <summary>
        /// 消防报警开关，0，关闭；1，开启
        /// </summary>
        [SugarColumn(ColumnName = "FireAlarm")] 
        public int? FireAlarm { get; set; }
        
    }
}
